\ProvidesPackage{ohpc-doc}
\usepackage[margin=1.0in]{geometry}
\usepackage{graphicx}
\usepackage{mdwlist}
\usepackage{listings}
\usepackage{textcomp}
\usepackage{array}
\usepackage{fancyhdr}
%\usepackage[hidelinks]{hyperref}
\usepackage{hyperref}
% update hypref link colors
\hypersetup{
  colorlinks   = true, %Colors links instead of ugly boxes
  urlcolor     = blue, %Color for external hyperlinks
  linkcolor    = blue, %Color of internal links
%  citecolor   = red %Color of citations
}

\usepackage{textcomp}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{caption}
\usepackage[usenames,dvipsnames]{color}
\usepackage{colortbl}
\usepackage{tcolorbox}
\usepackage{multicol}
\usepackage{etoolbox}
\usepackage{fix-cm}
\usepackage{colortbl}
\usepackage{xcolor}
\usepackage{amsfonts}
%%%\usepackage[T1]{fontenc}
\tcbuselibrary{skins}

% for non-released DRAFT - comment out for GA release
%\usepackage[firstpage]{draftwatermark}
%\usepackage{draftwatermark}
% %% \SetWatermarkText{Tech Preview}
% \SetWatermarkScale{0.45}

% ----------- Variables to change per release -------------


\newcommand{\OHPCVersion}{1.3.9}
\newcommand{\OHPCVerTree}{1.3}

% ---------------------------------------------------------

% Booleans for recipe-specific latex formatting
\newtoggle{isCentOS}
\newtoggle{isx86}
\newtoggle{isaarch}
\newtoggle{ispbs}
\newtoggle{isWarewulf}
\newtoggle{isSLURM}
\newtoggle{isxCAT}
\newtoggle{isxCATstateful}
\newtoggle{isCentOS_ww_slurm_x86}
\newtoggle{isCentOS_ww_pbs_x86}
\newtoggle{isSLES_ww_slurm_x86}
\newtoggle{isSLES_ww_pbs_x86}
\newtoggle{isCentOS_ww_slurm_aarch}
\newtoggle{isCentOS_ww_pbs_aarch}
\newtoggle{isSLES_ww_slurm_aarch}
\newtoggle{isSLES_ww_pbs_aarch}

% utility to check os-specific settings
\newcommand{\iftoggleverb}[1]{%
  \ifcsdef{etb@tgl@#1}
	  {\csname etb@tgl@#1\endcsname\iftrue\iffalse}
          {\etb@noglobal\etb@err@notoggle{#1}\iffalse}%
}

\pagestyle{fancy}
\setlength\headheight{59pt}
\addtolength{\topmargin}{-1\baselineskip}
\addtolength{\textheight}{-4\baselineskip}
\rhead{\includegraphics[width=0.67in]{ohpc_wordmark_color.pdf}}
%\fancyfoot[CO,CE]{\small \thepage \\ \vspace *{0.7cm} [~Community release~]}
%\fancyfoot[RE,RO]{\small Last Update: \VCDateISO~(Rev: \VCRevision)}
\fancyfoot[RE,RO]{Rev: \VCRevision}

% custom colors

\definecolor{grey}{rgb}{0.96,0.96,0.96}
\definecolor{logoblue}{RGB}{96,170,210}
\definecolor{logodarkgrey}{RGB}{119,120,119}
\definecolor{logolightgrey}{RGB}{166,167,159}

% tipbox settings

\tcbset{enhanced,width=(\linewidth-0cm),colback=white,title=Tip,colframe=logoblue}

% commandbox settings

\lstset{basicstyle=\footnotesize\ttfamily,
  frame=single,
  backgroundcolor=\color{grey},
  showstringspaces=false,
  commentstyle=\color{blue},
  captionpos=b,
%  columns=fullflexible,
  columns=flexible,
  belowskip=0.3cm,
  escapeinside={(*}{*)},
  aboveskip=0.4cm,
  xleftmargin=4pt,
  xrightmargin=4pt,
  keywordstyle=\color{blue}
}



%\newcommand{\Intel}{{Intel\raisebox{0.39ex}{\scriptsize{\textregistered}}}}
\newcommand{\beegfs}{BeeGFS}
\newcommand{\clustershell}{ClusterShell}
\newcommand{\conman}{ConMan}
\newcommand{\FFTW}{FFTW}
\newcommand{\Ganglia}{Ganglia}
\newcommand{\genders}{\emph{genders}}
\newcommand{\GEOPM}{GEOPM}
\newcommand{\GNU}{GNU}
\newcommand{\hdffive}{HDF5}
\newcommand{\InfiniBand}{InfiniBand}
\newcommand{\OmniPath}{Omni-Path}
\newcommand{\Intel}{Intel}
\newcommand{\IntelR}{Intel\raisebox{0.39ex}{\scriptsize{\textregistered}}}
\newcommand{\Linux}{Linux}
\newcommand{\LosF}{\emph{LosF*}}
\newcommand{\Lustre}{Lustre}
\newcommand{\mrsh}{\emph{mrsh}}
\newcommand{\MUNGE}{\emph{munge}}
\newcommand{\Nagios}{Nagios}
\newcommand{\NFS}{NFS}
\newcommand{\nhc}{NHC}
\newcommand{\OHPC}{OpenHPC}
\newcommand{\ORCM}{ORCM}
\newcommand{\powerman}{\emph{powerman}}
\newcommand{\Sensys}{Sensys}
\newcommand{\SLURM}{Slurm}
\newcommand{\Warewulf}{Warewulf}
\newcommand{\xCAT}{xCAT}
